package com.alex.megacj.filter;

import org.springframework.beans.factory.annotation.Required;

import com.alex.megacj.handler.RequestContext;

public class HostMatcher implements FilterMatcher {

	private String host;

	@Required
	public void setHost(String host) {
		this.host = host;
	}
	
	@Override
	public boolean matches(RequestContext context) {
		return host.equals(context.request.getServerName());
	}
}
